<html>
<head>
<title>Integrating Native Methods into Java Programs</title>
</head>
<body>
<table width=100%>
<tr>
<td align=left>
<img src=../images/dim.PreviousArrow.gif width=26 height=26 align=bottom border=0 alt="Previous | "><a
href="stepbystep/index.html"><img src=../images/NextArrow.gif width=26 height=26 align=bottom border=0 alt="Next | "></a><a
href="../index.html"><img src=../images/WayUpArrow.gif width=26 height=26 align=bottom border=0 alt="Trail Map | "></a><img
src=../images/dim.nativeHeader.gif width=26 height=26 align=bottom border=0 alt="Integrating Native Methods into Java Programs | ">
<td>
<td align=right>
<a href="TOC.html"><strong><em>Table of Contents</em></strong></a>
</td>
</tr>
</table>
<p>
<hr size=4>

<h1>
Integrating Native Methods into Java Programs <img src=../images/nativeTrail.gif height=40 width=40 align=top>
</h1>
<p>
<blockquote>

A <em>native method</em> is a Java method (either an instance method or a class
method) whose implementation is written in another programming language such as C.
The lessons in this trail show you how to integrate native methods into your
Java classes.
<br>
<b>Note:</b> Currently, the Java language only provides a mechanism for integrating C code into
Java programs; thus the lessons on this trail focus on writing native methods in C.


<!--    THE BASICS    -->
<p>
<a href=stepbystep/index.html>
<img src=../images/nativeIcon.gif align=left width=20 height=20 border=0>
Step By Step
</a>
walks you step by step through a very simple example (the "Hello World!" of
native methods) that shows you how to call a C method from a Java program. The C function
accepts no arguments and returns no value.


<!--    COMPREHENSIVE EXAMPLE    -->
<p>
<a href=example/index.html>
<img src="../images/nativeIcon.gif" align=left width=20 height=20 border=0>
Comprehensive Example
</a>
is a complete programming example that
implements a "character-replacement" program.

</blockquote>
<p>
<hr size=4>
<p>
<table width=100%>
<tr>
<td align=left>
<img src=../images/dim.PreviousArrow.gif width=26 height=26 align=top border=0 alt="Previous | "><a
href="stepbystep/index.html"><img src=../images/NextArrow.gif width=26 height=26 align=top border=0 alt="Next | "></a><a
href="../index.html"><img src=../images/WayUpArrow.gif width=26 height=26 align=top border=0 alt="Trail Map | "></a><img
src=../images/dim.nativeHeader.gif width=26 height=26 align=top border=0 alt="Integrating Native Methods into Java Programs | ">
<td>
<td align=right>
<a href="TOC.html"><strong><em>Table of Contents</em></strong></a>
</td>
</tr>
</table>
</body>
</html>
